package com.android.wlw_local;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * Created by zhuqin on 2017/12/29.
 */

public class WorkPlanFragment extends Fragment{

    private View mView ;

    private TextView temperature_tv ;

    private TextView wind_tv ;

    private TextView water_tv ;

    private ImageView cameraBgIv , cameraClickIv;

    public static WorkPlanFragment newInstance(){
        return new WorkPlanFragment();
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        mView = inflater.inflate(R.layout.fragment_workplan, container, false);
        temperature_tv = (TextView) mView.findViewById(R.id.temperature_tv);
        wind_tv = (TextView) mView.findViewById(R.id.wind_tv);
        water_tv = (TextView) mView.findViewById(R.id.water_tv);
        cameraBgIv = (ImageView) mView.findViewById(R.id.cameraBg);
        cameraClickIv = (ImageView) mView.findViewById(R.id.camera);
        return mView;
    }

    private void initData(){

    }

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
    }

    public void setTemperature_tv(String temperature){
        temperature_tv.setText(temperature);
    }

    public void setwind_tv(String wind){
        wind_tv.setText(wind);
    }

    public void setwater_tv(String water){
        water_tv.setText(water);
    }


}
